import request from '@sc/request';

export async function getCheckByMobile(mobile) {
  return request(`/api/v1/operate/valid/mobile?mobile=${mobile}`, {
    method: 'GET',
  });
}
export async function getCheckByMail(mail) {
  return request(`/api/v1/operate/valid/mail?mail=${mail}`, {
    method: 'GET',
  });
}
export async function postSetPasswordByMail(data) {
  return request(`/api/v1/operate/forgetPass/mail`, {
    method: 'POST',
    data,
  });
}
export async function postSetPasswordByMobile(data) {
  return request(`/api/v1/operate/forgetPass/mobile`, {
    method: 'POST',
    data,
  });
}
export async function getValidMobileCode(data) {
  return request(`/api/v1/operate/valid/mobile-code`, {
    method: 'GET',
    data,
  });
}
export async function getValidMailCode(data) {
  return request(`/api/v1/operate/valid/mail-code`, {
    method: 'GET',
    data,
  });
}

export default '';
